/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ncsu.csc573.project1.util;

/**
 *
 * @author svpendse1
 */
public class RfcData implements Comparable<RfcData> {
    private int number;
    private String name;
    String hostName;

    public RfcData(int number, String name, String hostName) {
        this.number = number;
        this.name = name;
        this.hostName = hostName;
    }

    public int getNumber() {
        return number;
    }

    public String getName() {
        return name;
    }

    public String getHostName(){
        return hostName;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    @Override
    public int compareTo(RfcData d) {
        if (this.name.equals(d.name) &&
            this.number == d.number) {
            return 0;
        }
        return 1;
    }
}
    
